package com.sgb.net.api.compatible;

import com.sgb.net.BuildConfig;
import com.sgb.net.core.BaseCompatibleNet;

import okhttp3.OkHttpClient;

/**
 * @author: 杨畔
 * @date: 2021/2/20 10:01
 * @Description: 兼容老版本例子
 */
public class CompatibleDemoNet extends BaseCompatibleNet {
    private final CompatibleDemoService mService;

    private CompatibleDemoNet() {
        mService = getService(CompatibleDemoService.class, mBaseUrl);
    }

    private static class Single {
        private static final CompatibleDemoNet instance = new CompatibleDemoNet();
    }

    public static CompatibleDemoNet getInstance() {
        return CompatibleDemoNet.Single.instance;
    }

    @Override
    protected void handleBuilder(OkHttpClient.Builder builder) {

    }

    public CompatibleDemoService getService() {
        return mService;
    }
}
